home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / EPPC.p < prev    next >
Text File  |  1996-05-01  |  4KB  |  157 lines

  1. {
  2.      File:        EPPC.p
  3.  
  4.      Contains:    High Level Event Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT EPPC;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __EPPC__}
  28. {$SETC __EPPC__ := 1}
  29.  
  30. {$I+}
  31. {$SETC EPPCIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __ERRORS__}
  35. {$I Errors.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __APPLETALK__}
  38. {$I AppleTalk.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __FILES__}
  41. {$I Files.p}
  42. {$ENDC}
  43. {$IFC UNDEFINED __PPCTOOLBOX__}
  44. {$I PPCToolbox.p}
  45. {$ENDC}
  46. {$IFC UNDEFINED __PROCESSES__}
  47. {$I Processes.p}
  48. {$ENDC}
  49. {$IFC UNDEFINED __EVENTS__}
  50. {$I Events.p}
  51. {$ENDC}
  52.  
  53. {$PUSH}
  54. {$ALIGN MAC68K}
  55. {$LibExport+}
  56.  
  57.  
  58. CONST
  59.                                                                 {  postOptions currently supported  }
  60.     receiverIDMask                = $0000F000;
  61.     receiverIDisPSN                = $00008000;
  62.     receiverIDisSignature        = $00007000;
  63.     receiverIDisSessionID        = $00006000;
  64.     receiverIDisTargetID        = $00005000;
  65.     systemOptionsMask            = $00000F00;
  66.     nReturnReceipt                = $00000200;
  67.     priorityMask                = $000000FF;
  68.     nAttnMsg                    = $00000001;
  69.  
  70.                                                                 {  constant for return receipts  }
  71.     HighLevelEventMsgClass        = 'jaym';
  72.     rtrnReceiptMsgID            = 'rtrn';
  73.  
  74.     msgWasPartiallyAccepted        = 2;
  75.     msgWasFullyAccepted            = 1;
  76.     msgWasNotAccepted            = 0;
  77.  
  78. {$IFC FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED }
  79.  
  80. TYPE
  81.     TargetIDPtr = ^TargetID;
  82.     TargetID = RECORD
  83.         sessionID:                LONGINT;
  84.         name:                    PPCPortRec;
  85.         location:                LocationNameRec;
  86.         recvrName:                PPCPortRec;
  87.     END;
  88.  
  89.     TargetIDHandle                        = ^TargetIDPtr;
  90.     TargetIDHdl                            = TargetIDHandle;
  91.     SenderID                            = TargetID;
  92.     SenderIDPtr                         = ^SenderID;
  93. {$ENDC}
  94.  
  95. TYPE
  96.     HighLevelEventMsgPtr = ^HighLevelEventMsg;
  97.     HighLevelEventMsg = RECORD
  98.         HighLevelEventMsgHeaderLength: INTEGER;
  99.         version:                INTEGER;
  100.         reserved1:                LONGINT;
  101.         theMsgEvent:            EventRecord;
  102.         userRefcon:                LONGINT;
  103.         postingOptions:            LONGINT;
  104.         msgLength:                LONGINT;
  105.     END;
  106.  
  107.     HighLevelEventMsgHandle                = ^HighLevelEventMsgPtr;
  108.     HighLevelEventMsgHdl                = HighLevelEventMsgHandle;
  109. {$IFC FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED }
  110.     GetSpecificFilterProcPtr = ProcPtr;  { FUNCTION GetSpecificFilter(contextPtr: UNIV Ptr; msgBuff: HighLevelEventMsgPtr; (CONST)VAR sender: TargetID): BOOLEAN; }
  111.  
  112.     GetSpecificFilterUPP = UniversalProcPtr;
  113.  
  114. CONST
  115.     uppGetSpecificFilterProcInfo = $00000FD0;
  116.  
  117. FUNCTION NewGetSpecificFilterProc(userRoutine: GetSpecificFilterProcPtr): GetSpecificFilterUPP;
  118.     {$IFC NOT GENERATINGCFM }
  119.     INLINE $2E9F;
  120.     {$ENDC}
  121.  
  122. FUNCTION CallGetSpecificFilterProc(contextPtr: UNIV Ptr; msgBuff: HighLevelEventMsgPtr; {CONST}VAR sender: TargetID; userRoutine: GetSpecificFilterUPP): BOOLEAN;
  123.     {$IFC NOT GENERATINGCFM}
  124.     INLINE $205F, $4E90;
  125.     {$ENDC}
  126. FUNCTION PostHighLevelEvent({CONST}VAR theEvent: EventRecord; receiverID: UNIV Ptr; msgRefcon: LONGINT; msgBuff: UNIV Ptr; msgLen: LONGINT; postingOptions: LONGINT): OSErr;
  127.     {$IFC NOT GENERATINGCFM}
  128.     INLINE $3F3C, $0034, $A88F;
  129.     {$ENDC}
  130. FUNCTION AcceptHighLevelEvent(VAR sender: TargetID; VAR msgRefcon: LONGINT; msgBuff: UNIV Ptr; VAR msgLen: LONGINT): OSErr;
  131.     {$IFC NOT GENERATINGCFM}
  132.     INLINE $3F3C, $0033, $A88F;
  133.     {$ENDC}
  134. FUNCTION GetProcessSerialNumberFromPortName({CONST}VAR portName: PPCPortRec; VAR pPSN: ProcessSerialNumber): OSErr;
  135.     {$IFC NOT GENERATINGCFM}
  136.     INLINE $3F3C, $0035, $A88F;
  137.     {$ENDC}
  138. FUNCTION GetPortNameFromProcessSerialNumber(VAR portName: PPCPortRec; {CONST}VAR pPSN: ProcessSerialNumber): OSErr;
  139.     {$IFC NOT GENERATINGCFM}
  140.     INLINE $3F3C, $0046, $A88F;
  141.     {$ENDC}
  142. FUNCTION GetSpecificHighLevelEvent(aFilter: GetSpecificFilterUPP; contextPtr: UNIV Ptr; VAR err: OSErr): BOOLEAN;
  143.     {$IFC NOT GENERATINGCFM}
  144.     INLINE $3F3C, $0045, $A88F;
  145.     {$ENDC}
  146. {$ENDC}
  147. {$ALIGN RESET}
  148. {$POP}
  149.  
  150. {$SETC UsingIncludes := EPPCIncludes}
  151.  
  152. {$ENDC} {__EPPC__}
  153.  
  154. {$IFC NOT UsingIncludes}
  155.  END.
  156. {$ENDC}
  157.